package com.lzy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzy.entity.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzy.vo.TeacherWithClassVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-04-29
 */
@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    /**
     * 使用MyBatis-Plus分页插件查询教师信息
     * @param page 分页参数
     * @param param 查询条件
     * @return 分页结果
     */
    IPage<TeacherWithClassVO> selectByCondition(Page<TeacherWithClassVO> page, HashMap param);

    void insertData();

    int updateTeacher(Teacher teacher);
}
